package cn.tedu.review;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.math.BigDecimal;

/**
 * @author: Dsi
 * @date: 2021/11/15 19:24
 * @description:
 */
public class TestInteger {
    public static void main(String[] args) throws IOException {

        Integer i=Integer.parseInt("456");
        Integer i2=i.parseInt("40");
        System.out.println(i);
        System.out.println(i2);


        BigDecimal b=new BigDecimal(4.5);
        BigDecimal b1=new BigDecimal("4.5");
        BigDecimal b2=new BigDecimal(4.5+"");


        File f=new File("D:\\Ready\\3.txt");
        f.createNewFile();
        FileInputStream f2=new FileInputStream("D:\\Ready\\1.txt");
        Integer c;
        while((c=f2.read())!=-1){
            System.out.println(c.toString());
        }




    }

}
